package com.gosophiaigit.contact.busi.entity;

/**
 * 联系人组别关系实体
 * 
 * @author zhanghuanchao
 * @since 2011-03-23
 */

@SuppressWarnings("serial")
public class ContactGroupRelation implements java.io.Serializable {

	/** 关系编号 */
	private Long relationId;
	/** 组别实体 */
	private ContactGroup contactGroup;
	/** 联系人实体 */
	private Contact contact;
	/** 组下人员数量 */
	private int groupPersonNumber;

	public ContactGroupRelation() {
		super();
	}
	
	public ContactGroupRelation(Long contactGroup, int groupPersonNumber) {
		super();
		this.relationId = contactGroup;
		this.groupPersonNumber = groupPersonNumber;
	}

	public ContactGroupRelation(Long relationId, ContactGroup contactGroup,
			Contact contact) {
		super();
		this.relationId = relationId;
		this.contactGroup = contactGroup;
		this.contact = contact;
	}

	public Long getRelationId() {
		return relationId;
	}

	public void setRelationId(Long relationId) {
		this.relationId = relationId;
	}

	public ContactGroup getContactGroup() {
		return contactGroup;
	}

	public void setContactGroup(ContactGroup contactGroup) {
		this.contactGroup = contactGroup;
	}

	public Contact getContact() {
		return contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}

	public int getGroupPersonNumber() {
		return groupPersonNumber;
	}

	public void setGroupPersonNumber(int groupPersonNumber) {
		this.groupPersonNumber = groupPersonNumber;
	}
}